package com.mgg.goods;

import com.mgg.common.messaging.GoodsQtyChangeProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = {"com.mgg"})
@EnableDiscoveryClient
@SpringBootApplication
@EnableBinding({GoodsQtyChangeProcessor.class})
public class GoodsApiApplication {

	public static void main(String[] args) {
		SpringApplication.run(GoodsApiApplication.class, args);
	}

}
